#__str__ 重载 tostring方法
class Man:

    def __init__(self,name,age):
        self.name = name
        self.age = age
    #override tostring
    def __str__(self):
        return f'Man({self.name} {self.age})'
    
    
m1 = Man("bob",33)

print(m1)